package com.github.captcha.generator.manager.impl.provider;

import com.github.captcha.common.constant.CaptchaTypeConstant;
import com.github.captcha.generator.manager.ImageCaptchaGenerator;
import com.github.captcha.generator.manager.ImageCaptchaGeneratorProvider;
import com.github.captcha.generator.manager.ImageTransform;
import com.github.captcha.generator.manager.impl.generator.SliderImageCaptchaGenerator;
import com.github.captcha.resource.manager.ImageCaptchaResourceManager;

public class SliderImageCaptchaGeneratorProvider implements ImageCaptchaGeneratorProvider {

    @Override
    public ImageCaptchaGenerator get(ImageCaptchaResourceManager resourceManager, ImageTransform imageTransform) {
        return new SliderImageCaptchaGenerator(resourceManager, imageTransform);
    }

    @Override
    public String getType() {
        return CaptchaTypeConstant.SLIDER;
    }
}
